package com.fc.happyteam.service.impl;

import com.fc.happyteam.dao.BaseDao;
import com.fc.happyteam.dao.SessionEntityDao;
import com.fc.happyteam.entity.SessionEntity;
import com.fc.happyteam.service.ISessionEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("sessionService")
public class SessionEntityServiceImpl extends BaseServiceImpl<SessionEntity> implements ISessionEntityService {

    @Autowired
    private SessionEntityDao sessionDao;

    public BaseDao getDao(){
        return sessionDao;
    }

    @Override
    public SessionEntity getSession(String sessionId) {
        return sessionDao.queryBySessionId(sessionId);
    }

}
